<?php
require_once(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."www.soyia.com_account".DIRECTORY_SEPARATOR."component".DIRECTORY_SEPARATOR."fckeditor".DIRECTORY_SEPARATOR."fckeditor.php");

class Helper_Fckeditor
{
	public function initEditor($editorName,$contentValue,$width='94%',$height='200')
	{
		$oFCKeditor = new FCKeditor($editorName) ;
		$oFCKeditor->BasePath = '/component/fckeditor/';
		$oFCKeditor->Value = $contentValue;
		$oFCKeditor->Width = $width;
		$oFCKeditor->Height = $height;
		$oFCKeditor->ToolbarSet='simple';
		return $oFCKeditor;
	}

	public function adminEditor($editorName,$contentValue,$width='94%',$height='200')
	{
		$oFCKeditor = new FCKeditor($editorName);
		$oFCKeditor->BasePath = '/component/fckeditor/';
		$oFCKeditor->Value = $contentValue;
		$oFCKeditor->Width = $width;
		$oFCKeditor->Height = $height;
		$oFCKeditor->ToolbarSet='AdminSet';
		return $oFCKeditor;
	}


	public function defaultEditor($editorName,$contentValue,$width='94%',$height='200')
	{
		$oFCKeditor = new FCKeditor($editorName);
		$oFCKeditor->BasePath = '/component/fckeditor/';
		$oFCKeditor->Value = $contentValue;
		$oFCKeditor->Width = $width;
		$oFCKeditor->Height = $height;
		$oFCKeditor->ToolbarSet='Default';
		return $oFCKeditor;
	}
}
?>